#pragma once
#include <GL/GLU.h>
#include "GePoint2.h"
namespace tge{
#pragma pack(push,4)
	struct DoTriangle_vertex
	{
		GePoint2d pt;
		long      idx;
	};
	class DoTriangle
	{
	public:
		static void Begin(int numVert, int nWingdingMode);
		static void AddContour(const GePoint2dArray & pgn);
		static void AddContour(int numVts, const GePoint2d* vts);
		static void End(GePoint2dArray& verts);
		static void End(int&numVts, DoTriangle_vertex*&vts, int&numIdx, long*&idx);
	};
#pragma pack(pop)
}